//
//  QQFriendViewCell.m
//  Qya
//
//  Created by shoguncao on 12-9-8.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "QQFriendViewCell.h"

@implementation QQFriendViewCell

@synthesize mHeadImageView;
@synthesize mNickNameLabel;
@synthesize mCheckBox;

- (void)awakeFromNib
{
    [self setCheckBox];
}

- (void)setCheckBox
{
    [mCheckBox setImage:[UIImage imageNamed:@"checkbox_off.png"] forState:UIControlStateNormal];
    [mCheckBox setImage:[UIImage imageNamed:@"checkbox_on.png"] forState:UIControlStateSelected];
    
    [mCheckBox addTarget:self action:@selector(checkboxClick:) forControlEvents:UIControlEventTouchUpInside]; 
}

- (void)checkboxClick:(UIButton *)btn
{
    btn.selected = !btn.selected;
}

@end
